<?php
/**
 * Created by PhpStorm.
 * User: shaowei
 * Date: 2022/9/1
 * Time: 18:20
 */

namespace App\Http\Controllers;


class Code
{
    // 通用提示
    const ERROR = -1;
    const SUCCESS = 0;
    const PARAM_ERROR = 1;

    // 用户相关
    const NOT_LOGIN = 1001;
    const LACK_DOT = 1002;
    const NOT_VIP = 1003;
    const RE_NICKNAME = 1004;
    const NOT_FREE_NUM = 1005;
    const NOT_ECY_VIP = 1006;
    const NEET_BUY_VIP = 1007;
    const NOT_PAINT_NUM = 1008;
    const NOT_REPEAT_CONTRIBUTION = 1009;
    const CONTRIBUTION_ERROR = 1010;
    const NOT_DRAWING = 1011;
    const OPUS_NOT_LOGIN = 1012;


    const WAIT_TIME = 2001;
    const WAIT_TIME1 = 2002;

    const SYSTEM_UPLOAD_ERROR = 3001;

    const REPEAT_BUY_SUPER_VIP_ERROR = 4001;

    //模型相关
    const MODEL_DISABLE = 5001;
    const STYLE_DISABLE = 5002;

    static $msg = [
        self::ERROR => '未知错误',
        self::SUCCESS => '成功',
        self::PARAM_ERROR => '参数错误',
        self::NOT_LOGIN => '未登录',
        self::LACK_DOT => '点数不足',
        self::NOT_VIP => '不是vip',
        self::RE_NICKNAME => '呢称重复',
        self::NOT_FREE_NUM => '没有免费次数了',
        self::NOT_ECY_VIP => '不是会员',
        self::NEET_BUY_VIP => '需要购买会员',
        self::NOT_PAINT_NUM => '今日作图已达上限',
        self::NOT_REPEAT_CONTRIBUTION => '不可重复投稿',
        self::CONTRIBUTION_ERROR => '投稿失败',
        self::NOT_DRAWING => '没有画板',
        self::OPUS_NOT_LOGIN => '',//作图未登录

        self::WAIT_TIME =>'提交太过频繁, 慢慢来～',
        self::WAIT_TIME1 =>'您的其他画作正在生成中 请稍等提交',

        self::SYSTEM_UPLOAD_ERROR => '文件上传失败',

        self::REPEAT_BUY_SUPER_VIP_ERROR => "已经是终生会员，请勿重复购买",

        self::MODEL_DISABLE => "模型不存在或已下线",
        self::STYLE_DISABLE => "描述词不存在或已下线",
    ];
}